package com.ruoyi.course.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.course.domain.TVideo;
import com.ruoyi.course.domain.TVideoCategory;
import com.ruoyi.course.vo.TVideoVo;

import java.util.List;

/**
 * 视频Service接口
 *
 * @author ruoyi
 * @date 2024-12-07
 */
public interface ITVideoService extends IService<TVideo> {

    /**
     * 分页查询
     *
     * @param entity
     * @return
     */
    TableDataInfo<TVideoVo> queryList(TVideoVo entity);

    /**
     * 查询全部
     *
     * @param entity
     * @return
     */
    List<TVideoVo> queryAll(TVideoVo entity);

    /**
     * 根据ID查询
     *
     * @param id
     * @return
     */
    TVideoVo queryById(Long id);

    List<Long> queryVideoIdsByCategoryIds(List<Long> categoryIds);

}
